#import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
#import <WeChatPay/WXApi.h>
#import <AlipaySDK/AlipaySDK.h>
#import <YeswayPay/PaySDK.h>
@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    [WXApi registerApp:@""];
    [WXApi registerAppSupportContentFlag:0];
    
    [AlipaySDK defaultService];
    
    [[PaySDK sharedPaySDK]registerWeixinApp:@""];
    
  [GeneratedPluginRegistrant registerWithRegistry:self];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    
    [[PaySDK sharedPaySDK] handleAliPayOpenURL:url];
    [[PaySDK sharedPaySDK] handleWeixinOpenURL:url];
    [WXApi handleOpenURL:url delegate: NULL];
    return false;
}

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
   [[PaySDK sharedPaySDK] handleAliPayOpenURL:url];
   [[PaySDK sharedPaySDK] handleWeixinOpenURL:url];
   [WXApi handleOpenURL:url delegate: NULL];
    return false;
}

@end
